package com.dstation.domain;

import org.springframework.stereotype.Component;

import java.sql.Timestamp;

@Component
public class MqMessage {

    private Long userId;

    private Long handleObjectId;

    //  1  浏览    2  点赞   3  收藏   4 投币
    private int messageType;

    //承载数据   方便拓展
    private Object data;

    //行为时间
    private Timestamp handleTime;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getMessageType() {
        return messageType;
    }

    public void setMessageType(int messageType) {
        this.messageType = messageType;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Timestamp getHandleTime() {
        return handleTime;
    }

    public void setHandleTime(Timestamp handleTime) {
        this.handleTime = handleTime;
    }

    public Long getHandleObjectId() {
        return handleObjectId;
    }

    public void setHandleObjectId(Long handleObjectId) {
        this.handleObjectId = handleObjectId;
    }

    public MqMessage() {
    }

    public MqMessage(long userId, long videoId,int messageType, Timestamp handleTime) {
        this.userId = userId;
        this.messageType = messageType;
        this.handleTime = handleTime;
        this.handleObjectId=videoId;
    }
}
